window.onload = function() {
	function close(close_obj, close_btn){
		var close_obj = document.getElementsByClassName(close_obj);
		var close_btn = document.getElementsByClassName(close_btn);
		for(var i = 0; i < close_btn.length; i++) {
			close_btn[i].index = i;
			close_btn[i].onclick = function(){
				this.parentNode.parentNode.remove();
			}
			
		}
	}
	close("close_obj","close_btn");
}
